package com.example.houduan.Pojo;

import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Component
public class Drug {
    private int drug_id;
    private String drug_name;
    private String drug_info;
    private String drug_effect;
    private String drug_img;
    private LocalDateTime createtime;
    private LocalDateTime updatetime;
    private String publisher;
    private DrugCompany drugCompany;

    public Drug() {
    }

    public Drug(int drug_id, String drug_name, String drug_info, String drug_effect, String drug_img, LocalDateTime createtime, LocalDateTime updatetime, String publisher, DrugCompany drugCompany) {
        this.drug_id = drug_id;
        this.drug_name = drug_name;
        this.drug_info = drug_info;
        this.drug_effect = drug_effect;
        this.drug_img = drug_img;
        this.createtime = createtime;
        this.updatetime = updatetime;
        this.publisher = publisher;
        this.drugCompany = drugCompany;
    }

    public int getDrug_id() {
        return drug_id;
    }

    public void setDrug_id(int drug_id) {
        this.drug_id = drug_id;
    }

    public String getDrug_name() {
        return drug_name;
    }

    public void setDrug_name(String drug_name) {
        this.drug_name = drug_name;
    }

    public String getDrug_info() {
        return drug_info;
    }

    public void setDrug_info(String drug_info) {
        this.drug_info = drug_info;
    }

    public String getDrug_effect() {
        return drug_effect;
    }

    public void setDrug_effect(String drug_effect) {
        this.drug_effect = drug_effect;
    }

    public String getDrug_img() {
        return drug_img;
    }

    public void setDrug_img(String drug_img) {
        this.drug_img = drug_img;
    }

    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }

    public LocalDateTime getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(LocalDateTime updatetime) {
        this.updatetime = updatetime;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public DrugCompany getDrugCompany() {
        return drugCompany;
    }

    public void setDrugCompany(DrugCompany drugCompany) {
        this.drugCompany = drugCompany;
    }

    @Override
    public String toString() {
        return "Drug{" +
                "drug_id=" + drug_id +
                ", drug_name='" + drug_name + '\'' +
                ", drug_info='" + drug_info + '\'' +
                ", drug_effect='" + drug_effect + '\'' +
                ", drug_img='" + drug_img + '\'' +
                ", createtime=" + createtime +
                ", updatetime=" + updatetime +
                ", publisher='" + publisher + '\'' +
                ", drugCompany=" + drugCompany +
                '}';
    }
}
